﻿using System;
using System.Collections.Generic;
using EraNet.Core;
using EraNet.Core.Model.Messages;

namespace EraNet.Services.Messages
{
    public interface IFeedbackServices
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Insert(Feedback model);
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Update(Feedback model);
        int Replay(Feedback model, string msg);
        /// <summary>
        /// 删除指定的对象
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Delete(Feedback model);
        /// <summary>
        /// 根据ID获取信息
        /// </summary>
        /// <param name="noticeId"></param>
        /// <returns></returns>
        Feedback GetNoticeById(int noticeId);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        IPagedList<Feedback> SelectPagerByUser(int userId, int pageIndex, int pageSize);
        /// <summary>
        /// 获取当前指定ID下的公告列表
        /// </summary>
        /// <param name="SchoolId"></param>
        /// <param name="PageIndex"></param>
        /// <param name="Pagesize"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        IPagedList<Feedback> SelectPager(int schoolId, int pageIndex, int pagesize);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="SchoolId"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="IsShow"></param>
        /// <returns></returns>
        IPagedList<Feedback> SelectPager(int SchoolId, int pageIndex, int pageSize, bool IsShow);
    }
}
